Visual Basic (Declaration) | |
---|---|
<ExtensionAttribute()> Public Overloads Shared Function OnComplete(Of T)( _ ByVal source As IdeaBlade.EntityModel.EntityQueryOperation, _ ByVal onSuccess As Action(Of IEnumerable(Of T)), _ ByVal onFail As Action(Of Exception) _ ) As IdeaBlade.EntityModel.EntityQueryOperation |
Visual Basic (Usage) | ![]() |
---|---|
Dim source As IdeaBlade.EntityModel.EntityQueryOperation Dim onSuccess As Action(Of IEnumerable(Of T)) Dim onFail As Action(Of Exception) Dim value As IdeaBlade.EntityModel.EntityQueryOperation value = OperationFns.OnComplete(Of T)(source, onSuccess, onFail) |
C# | |
---|---|
[ExtensionAttribute()] public static IdeaBlade.EntityModel.EntityQueryOperation OnComplete<T>( IdeaBlade.EntityModel.EntityQueryOperation source, Action<IEnumerable<T>> onSuccess, Action<Exception> onFail ) |
C++/CLI | |
---|---|
[ExtensionAttribute()] public: static IdeaBlade.EntityModel.EntityQueryOperation^ OnCompletegeneric<typename T> ( IdeaBlade.EntityModel.EntityQueryOperation^ source, Action<IEnumerable<T^>^>^ onSuccess, Action<Exception^>^ onFail ) |
Parameters
- source
- The EntityQueryOperation returned from an asynchronous query.
- onSuccess
- A callback to be called if the asynchronous query was successful.
- onFail
- A callback to be called if the asynchronous query failed.
Type Parameters
- T
Return Value
Returns the EntityQueryOperation passed to the method's source parameter.This overload automatically attempts to cast the results from IEnumerable to IEnumerable<T>.
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family